#递归求阶乘
def getNum(n):
    if n >= 1:
        result = n*getNum(n-1)
    else:
        result = 1

    return result
num = getNum(3)
print(num)